<div class="title_line nobgnopd"><div class="view_title">Create Custom Hook</div></div>
<div id="eg-grid-custom-hook-wrapper">
		<?php
		$fonts = new sds_rev_hooks_class();
		$custom_fonts = $fonts->get_all_hooks();
		
		if(!empty($custom_fonts)){
			foreach($custom_fonts as $font){
				$cur_font = $font['hookname'];
				$title = $font['hookname'];
				?>
				<div class="postbox eg-postbox" style="width:100%;min-width:500px">
					<h3 class="box-closed">
						<span style="font-weight:400"><?php echo RevsliderPrestashop::$lang['Hook_Name'];  ?>
						</span>
						<span style="text-transform:uppercase;"><?php echo $title; ?></span>
						<div class="fontpostbox-arrow"></div>
					</h3>
					
					<div class="inside" style="display:none;padding:0px !important;margin:0px !important;height:100%;position:relative;background:#ebebeb">
						<div class="tp-googlefont-row">
							<div class="eg-cus-row-l"><label><?php echo RevsliderPrestashop::$lang['Hook_Name'];  ?></label><input type="text" name="esg-hook-name[]" value="<?php echo @$font['hookname']; ?>"></div>

							<?php echo RevsliderPrestashop::$lang['custom_hook_desc'];  ?><span><strong> {hook h="<?php echo $title; ?>"}</strong></span>
						</div>
						<div class="tp-googlefont-save-wrap-settings">
							<a class="button-primary revred eg-hook-delete" href="javascript:void(0);"><?php echo RevsliderPrestashop::$lang['Remove'];  ?></a>
						</div>
					</div>
				</div>
				<?php
			}
		}
		?>
	</div>

	<a class="button-primary revblue" id="eg-hook-add" href="javascript:void(0);"><?php echo RevsliderPrestashop::$lang['Add_New_Hook'];  ?></a>
	<div id="hook-dialog-wrap" class="essential-dialog-wrap" title="<?php echo RevsliderPrestashop::$lang['Add_Hook'];  ?>"  style="display: none; padding:20px !important;">
		<div class="tp-googlefont-cus-row-l"><label><?php echo RevsliderPrestashop::$lang['Hook_Name'];  ?>:</label><input type="text" name="eg-hook-name" value="" />
		</div>
	</div>
	
	
	<script type="text/javascript">
		jQuery(function(){
			UniteAdminRev.inithooksetting();
			UniteAdminRev.initfontAccordion();
		});
	</script>